package org.smth.search.types.impl;

import org.smth.search.types.PostItem;

import java.util.Date;

public class PostItemImpl implements PostItem {

	private int id;

	private int firstId;

	private String author;

	private String flag;

	private Date time;

	private String title;

	private long size;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFirstId() {
		return firstId;
	}

	public void setFirstId(int firstId) {
		this.firstId = firstId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = new Date(time * 1000);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}
}
